package com.cal.utms.model.maintenance;

import java.util.ArrayList;
import java.util.List;

import com.cal.utms.dto.maintenance.FMContactPersonDto;
import com.cal.utms.entity.FundManagerContactPerson;

public class FundManContactPersonModel {

	public static List<FundManagerContactPerson> createModleList(List<FMContactPersonDto> beans) {
		List<FundManagerContactPerson> contactPersons = new ArrayList<FundManagerContactPerson>();
		for (FMContactPersonDto fmContactPersonBean : beans) {
			FundManagerContactPerson person = new FundManagerContactPerson();
			person.setCpDesignation(fmContactPersonBean.getCpDesignation());
			person.setCpEmail(fmContactPersonBean.getCpEmail());
			person.setCpFax(fmContactPersonBean.getCpFax());
			person.setCpName(fmContactPersonBean.getCpName());
			person.setCpPhone(fmContactPersonBean.getCpPhone());
			person.setFundManager(fmContactPersonBean.getFundManager());
			contactPersons.add(person);
		}
		return contactPersons;
	}
}
